<div style="margin: 0px auto; width: 80%;">
    <table class="table" width="100%" >
        <thead>
            <tr>
                <th>Promoção</th>
                <th>Quantidade vendida</th>
                <th>Procentagem</th>
            </tr>
        </thead>
        <tbody>
            <?php 
            foreach ($result as $row) { ?>
                <tr>
                    <td><?php echo $row['promocao']; ?></td>
                    <td><?php echo $row['qtd_vendas']; ?></td>
                    <td><?php echo number_format($row['porcentagem'],2); ?>%</td>
                </tr>
            <?php
            }
            ?>

        </tbody>
    </table>
</div>